﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsMaintenanceFile _iCsMaintenanceFile = null;
   
        public static ICsMaintenanceFile CreateCsMaintenanceFile()
        {
            if (_iCsMaintenanceFile == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.Maintenance.CsMaintenanceFile_Sys";
                _iCsMaintenanceFile = (ICsMaintenanceFile)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsMaintenanceFile;
        }
    }

    public interface ICsMaintenanceFile
    {
        DataTable GetEmptyData();
        bool InSertFileInfo(DataTable dt);


    }
}
